From 2894085c45526bf2c7ea96b6374acd05f597e4b7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Florian=20M=C3=BCllner?= Date: Fri, 22 Nov 2019 18:37:25 +0100 Subject: [PATCH] volume: Skip volume-change feedback while playing The audio feedback for volume changes is useful when nothing is outputting sound, but only then. Skip the sound notification in that case. https://gitlab.gnome.org/GNOME/gnome-shell/issues/53 --- js/ui/status/volume.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/ui/status/volume.js b/js/ui/status/volume.js index 87b24e04a..5ffb18989 100644 --- a/js/ui/status/volume.js +++ b/js/ui/status/volume.js @@ -138,6 +138,9 @@ var StreamSlider = class { } _notifyVolumeChange() { + if (this._stream.state === Gvc.MixerStreamState.RUNNING) + return; // feedback not necessary while playing + if (this._volumeCancellable) this._volumeCancellable.cancel(); -- 2.39.5